<template>
  <div class="content-item">
        <img v-if="imgsrc" :src="imgsrc">
        <div class="item-title">
            <h1>主标题</h1>
            <h3>副标题</h3>
        </div>
    </div>
</template>

<script>
export default {
    name:'ContentItem',
    props:['imgsrc']
}
</script>

<style>
.content-item{
    width: 100%;
    background-color: #7FFFD4;
}
.content-item > img{
    width: 100%;
    height: 300px;
}
.item-title{
    width: 100%;
    height: 131px;
    background-color: seagreen;
}
</style>